package com.crm.service;

import com.crm.base.BaseService;
import com.crm.domain.dto.LoginDTO;
import com.crm.domain.entity.User;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * 用户业务层接口
 */
public interface UserService extends BaseService<User> {

    void login(LoginDTO loginDTO, HttpSession session, HttpServletResponse response) throws Exception;

    void logout(HttpSession session, HttpServletResponse response);

    Boolean updPwd(String oldPwd, String newPwd) throws Exception;

    List<User> findCustomer();

    List<User> findCreateSaleChance();

    Boolean resetPwd(Integer uId);
}
